package com.shanjupay.merchant.service;

import com.shanjupay.common.domain.BusinessException;

/**
 *
 *
 *  手机短信服务
 *
 */
public interface SmsService {


    /**
     *
     *  获取短信验证码
     *
     * @param phone 要发送验证码的手机号
     * @return  返回验证码对应的key
     */
    String sendMsg(String phone );

    /**
     *  校验验证码， 抛出异常则校验无效
     *
     * @param verifiyKey 验证码key
     * @param verifiyCode 验证码
     */
    void checkVerifiyCode(String verifiyKey,String verifiyCode) throws BusinessException;


















}
